import request from '@/utils/request'

export default {
    getArticleTypeList() {
        return request({
            url: `/admin/blogservice/blogType/getArticleTypeList`,
            method: 'get'
        })
    },

    deleteArticleTypeById(id) {
        return request({
            url: `/admin/blogservice/blogType/deleteArticleTypeById/${id}`,
            method: 'delete',
        })
    },

    getArticleType(id) {
        return request({
            url: `/admin/blogservice/blogType/getArticleTypeById/${id}`,
            method: 'get',
        })
    },

    addArticleType(articleType) {
        return request({
            url: `/admin/blogservice/blogType/addArticleType`,
            method: 'post',
            data: articleType
        })
    },

    updateArticleTypeMsg(articleType) {
        return request({
          url: `/admin/blogservice/blogType/updateArticleTypeMsg`,
          method: 'post',
          data : articleType
        })
    },

    // 条件查询分页
    pageArticleCondition(current, limit, articleQuery) {
        return request({
          url: `/admin/blogservice/blog/pageArticleCondition/${current}/${limit}`,
          method: 'post',
          data : articleQuery
        })
    },

    deleteArticleById(id) {
        return request({
            url: `/admin/blogservice/blog/deleteArticleById/${id}`,
            method: 'delete',
        })
    },

}
